libostree: Add an assert to pacify clang-analyzer
authorColin Walters <walters@verbum.org>
Mon, 14 Oct 2019 13:25:46 +0000 (13:25 +0000)
committerColin Walters <walters@verbum.org>
Tue, 15 Oct 2019 12:40:54 +0000 (12:40 +0000)
commitaa7795d08d0d351a9117f2dc1c44f9f0ad568d05
tree7e2b0ecfcd3ebd04fc70f21785ea5dc9f170e34e
parentaefa1ca249d47b178482add4d252d7fd4c44e489
libostree: Add an assert to pacify clang-analyzer

Got this error when trying to rebase libostree in RHEL:

```
Error: CLANG_WARNING: [#def1]
libostree-2019.2/src/libostree/ostree-repo-checkout.c:375:21: warning: Access to field 'disable_xattrs' results in a dereference of a null pointer (loaded from variable 'repo')
```

I think what's happening is it sees us effectively testing
`if (repo == NULL)` via the `while (current_repo)`.  Let's
tell it we're sure it's non-null right after the loop.
src/libostree/ostree-repo-checkout.c